$(document).ready(function () {
  /* form init validation */
    var form = $("#asnForm");

    // JQuery validate 插件看文档
    // form validation
    form.validate({
        rules: {
            no: {
                remote: baseUrl + "/check/docNumber?oldNo=" + oldNo,
                alnum: true,
                maxlength: 4
            }
        },
        messages: {
            no: {
                remote: "该ASN编号已被使用!"
            }
        }
    });
});
